<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<link rel="shortcut icon" href="resources/icons/icon.png" id="icon"/>
<link rel="stylesheet" href="resources/css/main.css"/>

<!-- CodeMirror -->
<script src="resources/plugins/CodeMirror/lib/codemirror.js"></script>
<link rel="stylesheet" href="resources/plugins/CodeMirror/lib/codemirror.css">
<link rel="stylesheet" href="resources/plugins/CodeMirror/theme/bespin.css">
<link rel="stylesheet" href="resources/plugins/CodeMirror/theme/eclipse.css">
<link rel="stylesheet" href="resources/plugins/CodeMirror/theme/hopscotch.css">
<link rel="stylesheet" href="resources/plugins/CodeMirror/theme/mbo.css">
<!-- // CodeMirror -->

<!-- CodeMirror 高亮文件类型 -->
<!--
<script src="resources/plugins/CodeMirror/mode/javascript/javascript.js"></script>
<script src="resources/plugins/CodeMirror/mode/xml/xml.js"></script>
<script src="resources/plugins/CodeMirror/mode/htmlmixed/htmlmixed.js"></script>
<script src="resources/plugins/CodeMirror/mode/css/css.js"></script>
-->
<!-- // CodeMirror 高亮文件类型 -->

<!-- CodeMirror 扩展插件 -->
<script src="resources/plugins/CodeMirror/addon/edit/closebrackets.js"></script><!-- 自动闭合括号 -->
<script src="resources/plugins/CodeMirror/addon/edit/closetag.js"></script><!-- 自动闭合标签 -->
<script src="resources/plugins/CodeMirror/addon/edit/matchbrackets.js"></script><!-- 提示配对括号 -->
<script src="resources/plugins/CodeMirror/addon/edit/matchtags.js"></script><!-- 提示配对标签 -->
<script src="resources/plugins/CodeMirror/addon/edit/trailingspace.js"></script><!-- 结尾多余空格显示错误下划线 -->

<script src="resources/plugins/CodeMirror/addon/fold/foldcode.js"></script>
<script src="resources/plugins/CodeMirror/addon/fold/foldgutter.js"></script>
<script src="resources/plugins/CodeMirror/addon/fold/brace-fold.js"></script>
<script src="resources/plugins/CodeMirror/addon/fold/xml-fold.js"></script>
<script src="resources/plugins/CodeMirror/addon/fold/comment-fold.js"></script>

<link rel="stylesheet" href="resources/plugins/CodeMirror/addon/hint/show-hint.css">
<script src="resources/plugins/CodeMirror/addon/hint/anyword-hint.js"></script>
<script src="resources/plugins/CodeMirror/addon/hint/css-hint.js"></script>
<script src="resources/plugins/CodeMirror/addon/hint/html-hint.js"></script>
<script src="resources/plugins/CodeMirror/addon/hint/javascript-hint.js"></script>
<script src="resources/plugins/CodeMirror/addon/hint/show-hint.js"></script>
<script src="resources/plugins/CodeMirror/addon/hint/sql-hint.js"></script>
<script src="resources/plugins/CodeMirror/addon/hint/xml-hint.js"></script>

<script src="resources/plugins/CodeMirror/addon/selection/active-line.js"></script><!-- 高亮当前行 -->

<script src="resources/plugins/CodeMirror/addon/mode/loadmode.js"></script><!-- 动态加载高亮类型 -->
<script src="resources/plugins/CodeMirror/mode/meta.js"></script>

<link rel="stylesheet" href="resources/plugins/CodeMirror/addon/scroll/simplescrollbars.css">
<script src="resources/plugins/CodeMirror/addon/scroll/simplescrollbars.js"></script>

<link rel="stylesheet" href="resources/plugins/CodeMirror/addon/display/fullscreen.css">
<script src="resources/plugins/CodeMirror/addon/display/fullscreen.js"></script>

<script src="resources/plugins/CodeMirror/keymap/sublime.js"></script>

<!-- // CodeMirror 扩展插件 -->

<link rel="stylesheet" href="resources/css/MyCodeMirror.css"/>
<title>troneditor</title>
</head>
<body>
<div id="main">
	<div id="menubar">
		<ul>
			<li>
				<a href="javascript:;">File</a>
				<ul>
					<li id="New"><span>Ctrl+N</span><a href="javascript:;">New</a></li>
					<li id="Open"><span>Ctrl+O</span><a href="javascript:;">Open...</a></li>
					<li id="Close"><span>Ctrl+W</span><a href="javascript:;">Close</a></li>
					<li id="CloseAll"><a href="javascript:;">Close All</a></li>
					<li class="separator"></li>
					<!--
					<li id="Save"><span>Ctrl+S</span><a href="javascript:;">Save</a></li>
					<li id="SaveAll"><a href="javascript:;">Save All</a></li>
					<li id="SaveAs"><a href="javascript:;">Save As...</a></li>
					<li class="separator"></li>
					<li id="SaveExit"><a href="javascript:;">Save & Exit</a></li>
					-->
					<li id="Exit"><a href="javascript:;">Exit</a></li>
				</ul>
			</li>
			<!--
			<li>
				<a href="javascript:;">Edit</a>
				<ul>
					<li><span>Ctrl+Z</span><a href="javascript:;">Undo</a></li>
					<li><span>Ctrl+Y</span><a href="javascript:;">Redo</a></li>
					<li class="separator"></li>
					<li><span>Ctrl+X</span><a href="javascript:;">Cut</a></li>
					<li><span>Ctrl+C</span><a href="javascript:;">Copy</a></li>
					<li><span>Ctrl+V</span><a href="javascript:;">Paste</a></li>
					<li><a href="javascript:;">Delete</a></li>
					<li class="separator"></li>
					<li><span>Ctrl+A</span><a href="javascript:;">Select All</a></li>
				</ul>
			</li>
			-->
            <!--
			<li>
				<a href="javascript:;">View</a>
				<ul>
					<li><a href="javascript:;">Theme</a></li>
					<li class="separator"></li>
					<li><a href="javascript:;">Font</a></li>
					<li><a href="javascript:;">Line Number</a></li>
					<li><a href="javascript:;">Word Wrap</a></li>
					<li class="separator"></li>
					<li><a href="javascript:;">Full Screen</a></li>
				</ul>
			</li>
			<li>
				<a href="javascript:;">Search</a>
				<ul>
					<li><span>Ctrl+F</span><a href="javascript:;">Find</a></li>
					<li><span>Ctrl+H</span><a href="javascript:;">Replace...</a></li>
					<li class="separator"></li>
					<li><span>Ctrl+L</span><a href="javascript:;">Go To</a></li>
					<li><a href="javascript:;">First Place</a></li>
					<li><a href="javascript:;">Last Place</a></li>
				</ul>
			</li>
			-->
			<!--
			<li>
				<a href="javascript:;">Tools</a>
				<ul class="large">
					<li><label for="uglify-js"><input id="uglify-js" type="checkbox" checked/>uglify-js</label></li>
					<li><label for="clean-css"><input id="clean-css" type="checkbox" checked/>clean-css</label></li>
					<li><label for="html-minifier"><input id="html-minifier" type="checkbox" checked/>html-minifier</label></li>
					<li class="separator"></li>
					<li><span>Ctrl+Shift+I</span><label for="developer-tools"><input id="developer-tools" type="checkbox"/>Developer Tools</label></li>
				</ul>
			</li>
			-->
			<li>
				<a href="javascript:;">Skins</a>
				<ul class="skins">
					<li id="default"><span></span></li>
					<li id="black"><span></span></li>
					<li id="green"><span></span></li>
					<li id="red"><span></span></li>
					<li id="blue"><span></span></li>
					<li id="orange"><span></span></li>
					<li id="purple"><span></span></li>
				</ul>
			</li>
			<li>
				<a href="javascript:;">Help</a>
				<ul>
					<li id="document"><a href="javascript:;">Document</a></li>
                    <li class="separator"></li>
					<li id="about"><a href="javascript:;">About</a></li>
				</ul>
			</li>
		</ul>
	</div>
	<div id="content">
		<div id="code"></div>
		<ul id="tabs"></ul>
		<!--
		<textarea id="editor" name="editor"></textarea>
		-->
	</div>
</div>
<script src="resources/skins/skins.js"></script>
<script>
/* ------------------------------
 * 打开文件数组
 * {path:文件路径,editor:编辑器,modified:1已修改0未修改,newfile:1新建文件0打开文件}
 * ------------------------------
 */
var editors = new Array();
// 渲染进程
require('./process/renderer_main');
</script>
</body>
</html>